/*

This file is part of Ext JS 4

Copyright (c) 2011 Sencha Inc

Contact:  http://www.sencha.com/contact

GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.

If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.

*/
/**
 * Serbian Cyrillic Translation
 * by ÄŒolovic Vladan (cyrillic, utf8 encoding)
 * sr_RS (ex: sr_CS, sr_YU)
 * 12 May 2007
 */
Ext.onReady(function() {
    if(Ext.Updater) {
        Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Ð£Ñ‡Ð¸Ñ‚Ð°Ð²Ð°Ð¼...</div>';
    }

    if(Ext.view.View){
       Ext.view.View.prototype.emptyText = "";
    }

    if(Ext.grid.Panel){
       Ext.grid.Panel.prototype.ddText = "{0} Ð¸Ð·Ð°Ð±Ñ€Ð°Ð½Ð¸Ñ… Ñ€ÐµÐ´Ð¾Ð²Ð°";
    }

    if(Ext.TabPanelItem){
       Ext.TabPanelItem.prototype.closeText = "Ð—Ð°Ñ‚Ð²Ð¾Ñ€Ð¸ Ð¾Ð²Ñƒ Â»ÐºÐ°Ñ€Ñ‚Ð¸Ñ†ÑƒÂ«";
    }

    if(Ext.form.field.Base){
       Ext.form.field.Base.prototype.invalidText = "Ð£Ð½ÐµÑˆÐµÐ½Ð° Ð²Ñ€ÐµÐ´Ð½Ð¾Ñ�Ñ‚ Ð½Ð¸Ñ˜Ðµ Ð¿Ñ€Ð°Ð²Ð¸Ð»Ð½Ð°";
    }

    if(Ext.LoadMask){
        Ext.LoadMask.prototype.msg = "Ð£Ñ‡Ð¸Ñ‚Ð°Ð²Ð°Ð¼...";
    }

    if(Ext.Date) {
        Ext.Date.monthNames = [
           "ÐˆÐ°Ð½ÑƒÐ°Ñ€",
           "Ð¤ÐµÐ±Ñ€ÑƒÐ°Ñ€",
           "ÐœÐ°Ñ€Ñ‚",
           "Ð�Ð¿Ñ€Ð¸Ð»",
           "ÐœÐ°Ñ˜",
           "ÐˆÑƒÐ½",
           "ÐˆÑƒÐ»",
           "Ð�Ð²Ð³ÑƒÑ�Ñ‚",
           "Ð¡ÐµÐ¿Ñ‚ÐµÐ¼Ð±Ð°Ñ€",
           "ÐžÐºÑ‚Ð¾Ð±Ð°Ñ€",
           "Ð�Ð¾Ð²ÐµÐ¼Ð±Ð°Ñ€",
           "Ð”ÐµÑ†ÐµÐ¼Ð±Ð°Ñ€"
        ];

        Ext.Date.dayNames = [
           "Ð�ÐµÐ´ÐµÑ™Ð°",
           "ÐŸÐ¾Ð½ÐµÐ´ÐµÑ™Ð°Ðº",
           "Ð£Ñ‚Ð¾Ñ€Ð°Ðº",
           "Ð¡Ñ€ÐµÐ´Ð°",
           "Ð§ÐµÑ‚Ð²Ñ€Ñ‚Ð°Ðº",
           "ÐŸÐµÑ‚Ð°Ðº",
           "Ð¡ÑƒÐ±Ð¾Ñ‚Ð°"
        ];
    }

    if(Ext.MessageBox){
       Ext.MessageBox.buttonText = {
          ok     : "Ð£ Ñ€ÐµÐ´Ñƒ",
          cancel : "ÐžÐ´ÑƒÑ�Ñ‚Ð°Ð½Ð¸",
          yes    : "Ð”Ð°",
          no     : "Ð�Ðµ"
       };
    }

    if(Ext.util.Format){
        Ext.apply(Ext.util.Format, {
            thousandSeparator: '.',
            decimalSeparator: ',',
            currencySign: '\u0414\u0438\u043d\u002e',  // Serbian Dinar
            dateFormat: 'd.m.Y'
        });
    }

    if(Ext.picker.Date){
       Ext.apply(Ext.picker.Date.prototype, {
          todayText         : "Ð”Ð°Ð½Ð°Ñ�",
          minText           : "Ð”Ð°Ñ‚ÑƒÐ¼ Ñ˜Ðµ Ð¸Ñ�Ð¿Ñ€ÐµÐ´ Ð½Ð°Ñ˜Ð¼Ð°ÑšÐµÐ³ Ð´Ð¾Ð·Ð²Ð¾Ñ™ÐµÐ½Ð¾Ð³ Ð´Ð°Ñ‚ÑƒÐ¼Ð°",
          maxText           : "Ð”Ð°Ñ‚ÑƒÐ¼ Ñ˜Ðµ Ð½Ð°ÐºÐ¾Ð½ Ð½Ð°Ñ˜Ð²ÐµÑ›ÐµÐ³ Ð´Ð¾Ð·Ð²Ð¾Ñ™ÐµÐ½Ð¾Ð³ Ð´Ð°Ñ‚ÑƒÐ¼Ð°",
          disabledDaysText  : "",
          disabledDatesText : "",
          monthNames	: Ext.Date.monthNames,
          dayNames		: Ext.Date.dayNames,
          nextText          : 'Ð¡Ð»ÐµÐ´ÐµÑ›Ð¸ Ð¼ÐµÑ�ÐµÑ† (Control+Ð”ÐµÑ�Ð½Ð¾)',
          prevText          : 'ÐŸÑ€ÐµÑ‚Ñ…Ð¾Ð´Ð½Ð¸ Ð¼ÐµÑ�ÐµÑ† (Control+Ð›ÐµÐ²Ð¾)',
          monthYearText     : 'Ð˜Ð·Ð°Ð±ÐµÑ€Ð¸Ñ‚Ðµ Ð¼ÐµÑ�ÐµÑ† (Control+Ð“Ð¾Ñ€Ðµ/Ð”Ð¾Ð»Ðµ Ð·Ð° Ð¸Ð·Ð±Ð¾Ñ€ Ð³Ð¾Ð´Ð¸Ð½Ðµ)',
          todayTip          : "{0} (Ð Ð°Ð·Ð¼Ð°ÐºÐ½Ð¸Ñ†Ð°)",
          format            : "d.m.y",
          startDay 		 : 1
       });
    }

    if(Ext.toolbar.Paging){
       Ext.apply(Ext.PagingToolbar.prototype, {
          beforePageText : "Ð¡Ñ‚Ñ€Ð°Ð½Ð°",
          afterPageText  : "Ð¾Ð´ {0}",
          firstText      : "ÐŸÑ€Ð²Ð° Ñ�Ñ‚Ñ€Ð°Ð½Ð°",
          prevText       : "ÐŸÑ€ÐµÑ‚Ñ…Ð¾Ð´Ð½Ð° Ñ�Ñ‚Ñ€Ð°Ð½Ð°",
          nextText       : "Ð¡Ð»ÐµÐ´ÐµÑ›Ð° Ñ�Ñ‚Ñ€Ð°Ð½Ð°",
          lastText       : "ÐŸÐ¾Ñ�Ð»ÐµÐ´ÑšÐ° Ñ�Ñ‚Ñ€Ð°Ð½Ð°",
          refreshText    : "ÐžÑ�Ð²ÐµÐ¶Ð¸",
          displayMsg     : "ÐŸÑ€Ð¸ÐºÐ°Ð·Ð°Ð½Ð° {0} - {1} Ð¾Ð´ {2}",
          emptyMsg       : 'Ð�ÐµÐ¼Ð°Ð¼ ÑˆÑ‚Ð° Ð¿Ñ€Ð¸ÐºÐ°Ð·Ð°Ñ‚Ð¸'
       });
    }

    if(Ext.form.field.Text){
       Ext.apply(Ext.form.field.Text.prototype, {
          minLengthText : "ÐœÐ¸Ð½Ð¸Ð¼Ð°Ð»Ð½Ð° Ð´ÑƒÐ¶Ð¸Ð½Ð° Ð¾Ð²Ð¾Ð³ Ð¿Ð¾Ñ™Ð° Ñ˜Ðµ {0}",
          maxLengthText : "ÐœÐ°ÐºÑ�Ð¸Ð¼Ð°Ð»Ð½Ð° Ð´ÑƒÐ¶Ð¸Ð½Ð° Ð¾Ð²Ð¾Ð³ Ð¿Ð¾Ñ™Ð° Ñ˜Ðµ {0}",
          blankText     : "ÐŸÐ¾Ñ™Ðµ Ñ˜Ðµ Ð¾Ð±Ð°Ð²ÐµÐ·Ð½Ð¾",
          regexText     : "",
          emptyText     : null
       });
    }

    if(Ext.form.field.Number){
       Ext.apply(Ext.form.field.Number.prototype, {
          minText : "ÐœÐ¸Ð½Ð¸Ð¼Ð°Ð»Ð½Ð° Ð²Ñ€ÐµÐ´Ð½Ð¾Ñ�Ñ‚ Ñƒ Ð¿Ð¾Ñ™Ñƒ Ñ˜Ðµ {0}",
          maxText : "ÐœÐ°ÐºÑ�Ð¸Ð¼Ð°Ð»Ð½Ð° Ð²Ñ€ÐµÐ´Ð½Ð¾Ñ�Ñ‚ Ñƒ Ð¿Ð¾Ñ™Ñƒ Ñ˜Ðµ {0}",
          nanText : "{0} Ð½Ð¸Ñ˜Ðµ Ð¿Ñ€Ð°Ð²Ð¸Ð»Ð°Ð½ Ð±Ñ€Ð¾Ñ˜"
       });
    }

    if(Ext.form.field.Date){
       Ext.apply(Ext.form.field.Date.prototype, {
          disabledDaysText  : "ÐŸÐ°Ñ�Ð¸Ð²Ð½Ð¾",
          disabledDatesText : "ÐŸÐ°Ñ�Ð¸Ð²Ð½Ð¾",
          minText           : "Ð”Ð°Ñ‚ÑƒÐ¼ Ñƒ Ð¾Ð²Ð¾Ð¼ Ð¿Ð¾Ñ™Ñƒ Ð¼Ð¾Ñ€Ð° Ð±Ð¸Ñ‚Ð¸ Ð½Ð°ÐºÐ¾Ð½ {0}",
          maxText           : "Ð”Ð°Ñ‚ÑƒÐ¼ Ñƒ Ð¾Ð²Ð¾Ð¼ Ð¿Ð¾Ñ™Ñƒ Ð¼Ð¾Ñ€Ð° Ð±Ð¸Ñ‚Ð¸ Ð¿Ñ€Ðµ {0}",
          invalidText       : "{0} Ð½Ð¸Ñ˜Ðµ Ð¿Ñ€Ð°Ð²Ð¸Ð»Ð°Ð½ Ð´Ð°Ñ‚ÑƒÐ¼ - Ð·Ð°Ñ…Ñ‚ÐµÐ²Ð°Ð½Ð¸ Ð¾Ð±Ð»Ð¸Ðº Ñ˜Ðµ {1}",
          format            : "d.m.y"
       });
    }

    if(Ext.form.field.ComboBox){
       Ext.apply(Ext.form.field.ComboBox.prototype, {
          loadingText       : "Ð£Ñ‡Ð¸Ñ‚Ð°Ð²Ð°Ð¼...",
          valueNotFoundText : undefined
       });
    }

    if(Ext.form.field.VTypes){
       Ext.apply(Ext.form.field.VTypes, {
          emailText    : 'ÐžÐ²Ð¾ Ð¿Ð¾Ñ™Ðµ Ð¿Ñ€Ð¸Ñ…Ð²Ð°Ñ‚Ð° e-mail Ð°Ð´Ñ€ÐµÑ�Ñƒ Ð¸Ñ�ÐºÑ™ÑƒÑ‡Ð¸Ð²Ð¾ Ñƒ Ð¾Ð±Ð»Ð¸ÐºÑƒ "korisnik@domen.com"',
          urlText      : 'ÐžÐ²Ð¾ Ð¿Ð¾Ñ™Ðµ Ð¿Ñ€Ð¸Ñ…Ð²Ð°Ñ‚Ð° URL Ð°Ð´Ñ€ÐµÑ�Ñƒ Ð¸Ñ�ÐºÑ™ÑƒÑ‡Ð¸Ð²Ð¾ Ñƒ Ð¾Ð±Ð»Ð¸ÐºÑƒ "http:/'+'/www.domen.com"',
          alphaText    : 'ÐžÐ²Ð¾ Ð¿Ð¾Ñ™Ðµ Ð¼Ð¾Ð¶Ðµ Ñ�Ð°Ð´Ñ€Ð¶Ð°Ñ‚Ð¸ Ð¸Ñ�ÐºÑ™ÑƒÑ‡Ð¸Ð²Ð¾ Ñ�Ð»Ð¾Ð²Ð° Ð¸ Ð·Ð½Ð°Ðº _',
          alphanumText : 'ÐžÐ²Ð¾ Ð¿Ð¾Ñ™Ðµ Ð¼Ð¾Ð¶Ðµ Ñ�Ð°Ð´Ñ€Ð¶Ð°Ñ‚Ð¸ Ñ�Ð°Ð¼Ð¾ Ñ�Ð»Ð¾Ð²Ð°, Ð±Ñ€Ð¾Ñ˜ÐµÐ²Ðµ Ð¸ Ð·Ð½Ð°Ðº _'
       });
    }

    if(Ext.grid.header.Container){
       Ext.apply(Ext.grid.header.Container.prototype, {
          sortAscText  : "Ð Ð°Ñ�Ñ‚ÑƒÑ›Ð¸ Ñ€ÐµÐ´Ð¾Ñ�Ð»ÐµÐ´",
          sortDescText : "ÐžÐ¿Ð°Ð´Ð°Ñ˜ÑƒÑ›Ð¸ Ñ€ÐµÐ´Ð¾Ñ�Ð»ÐµÐ´",
          lockText     : "Ð—Ð°ÐºÑ™ÑƒÑ‡Ð°Ñ˜ ÐºÐ¾Ð»Ð¾Ð½Ñƒ",
          unlockText   : "ÐžÑ‚ÐºÑ™ÑƒÑ‡Ð°Ñ˜ ÐºÐ¾Ð»Ð¾Ð½Ñƒ",
          columnsText  : "ÐšÐ¾Ð»Ð¾Ð½Ðµ"
       });
    }

    if(Ext.grid.PropertyColumnModel){
       Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
          nameText   : "Ð�Ð°Ð·Ð¸Ð²",
          valueText  : "Ð’Ñ€ÐµÐ´Ð½Ð¾Ñ�Ñ‚",
          dateFormat : "d.m.Y"
       });
    }

    if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
       Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
          splitTip            : "ÐŸÐ¾Ð²ÑƒÑ›Ð¸ Ð·Ð° Ð¸Ð·Ð¼ÐµÐ½Ñƒ Ð²ÐµÐ»Ð¸Ñ‡Ð¸Ð½Ðµ.",
          collapsibleSplitTip : "ÐŸÐ¾Ð²ÑƒÑ›Ð¸ Ð·Ð° Ð¸Ð·Ð¼ÐµÐ½Ñƒ Ð²ÐµÐ»Ð¸Ñ‡Ð¸Ð½Ðµ. Ð”Ð²Ð¾Ñ�Ñ‚Ñ€ÑƒÐºÐ¸ ÐºÐ»Ð¸Ðº Ð·Ð° Ñ�Ð°ÐºÑ€Ð¸Ð²Ð°ÑšÐµ."
       });
    }
});
